import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/gh_changes/load',
    method: 'get',
    params
  })
}

export function add(data) {
  return request({
    url: '/gh_changes/add',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: '/gh_changes/update',
    method: 'post',
    data
  })
}

export function del(data) {
  return request({
    url: '/gh_changes/delete',
    method: 'post',
    data
  })
}

export function get(id) {
  return request({
    url: '/gh_changes/get?id='+id,
    method: 'get'
  })
}


export function get2(params) {
  return request({
    url: params.url,
    method: 'get',
    params
  })
}



